  document.querySelector('.chat-header button').addEventListener('click', function() {
    document.getElementById('chat-box1').style.display = 'none';
    localStorage.removeItem('chatHistory');
    location.reload();
  });

  document.querySelector('#chat-button').addEventListener('click', function() {
    document.getElementById('chat-box1').style.display = 'block';
  });